{% set page_title = "MQTT Configuration" %} {% include "_brand.html" %}
DISCONNECTED ← Home
{% if request.query_params.get('ok') %} {% endif %} {% if request.query_params.get('err') %} {% endif %}
Status: {% if mqtt_status.connected %}CONNECTED{% else %}NOT CONNECTED{% endif %} {% if mqtt_status.subscribed %}SUBSCRIBED{% endif %} {% if mqtt_status.error %}
Error: {{ mqtt_status.error }}{% endif %}
Broker: {{ mqtt_status.domain or cfg.mqtt.domain }}:{{ mqtt_status.port or cfg.mqtt.port }} · User: {{ mqtt_status.user or cfg.mqtt.user }} · Topic: {{ mqtt_status.topic or cfg.mqtt.topic }}

1. MQTT {% if mqtt_status.connected %}ON{% else %}OFF{% endif %}

2. Credentials

Save reconnects automatically and subscribes to the topic. If you see Not authorized, the broker rejected User/Password.

First time: fill credentials once → Save & Connect. Next app start: these values load from data/config.json and MQTT auto-connects.

{% include "_footer.html" %}